package com.lsb.mapper;

import com.lsb.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liusibo
 * @since 2021-06-09
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    //查询所有用户,忽视逻辑删除
    List<User> getAllUsersIgnoreLogicDelete();
    //根据id查询一个用户,忽视逻辑删除
    User getUserById(@Param("id") Integer id);
    //根据id修改一个用户信息,忽视逻辑删除
    int updateUserByIdIgnoreLogicDelete(@Param("id") Integer id);
}
